import { getlistApi, bannerApi, listdetailApi } from "@/api/index.js"

let actions = {
    async actchangelist(context, params) {
        let result = await getlistApi(params)
        context.commit("changegetlist", result.data)

    },
    async actbanner(context, params) {
        let result = await bannerApi(params)
        console.log(result.data);
        context.commit("changegetbaner", result.data)
    },
    async actlistdetaill(context, params) {
        let result = await listdetailApi(params)
        console.log(result.data[0]);
        context.commit("changelistdetail", result.data[0])
    }
}
export default actions